<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/DesignerFinder',
    'namespace'     => 'Beerus\\Modules\\DesignerFinder\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 对话
    $router->get('/dialogue', 'DialogueController@index')->name('dialogue.list');
    $router->get('/dialogue/create', 'DialogueController@edit');
    $router->post('/dialogue/save', 'DialogueController@editSubmit');
    $router->get('/dialogue/{dialogue_id}/edit', 'DialogueController@edit');
    $router->delete('/dialogue/{id}', 'DialogueController@delDialogue');

    // 咨询
    $router->get('/consult', 'ConsultController@index')->name('consult.list');
    $router->get('/export_consult', 'ConsultController@exportConsult');
    // 专题页管理
    $router->get('/subject', 'SubjectController@index')->name('subject.list');
    $router->get('/subject/create', 'SubjectController@edit');
    $router->post('/subject/save', 'SubjectController@save');
    $router->get('/subject/{subject_id}/edit', 'SubjectController@edit');
    $router->get('/subject/online/{subject_id}', 'SubjectController@online');
    $router->get('/subject/offline/{subject_id}', 'SubjectController@offline');

});
